
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:p="http://primefaces.org/ui">
<head>
<title>Market place</title>
</head>
<body>
	<ui:composition template="/templates/masterTemplate.xhtml">
		<ui:define name="content">
			<h:outputStylesheet library="css" name="login.css"></h:outputStylesheet>
			<div id="center">
				<div id="loginInfo">
					<h:form id="centerForm">
					<p:panel header="#{msgs.changePassword}">
						<h:panelGrid columns="2" cellspacing="15px" style="width:100%">
							<h:outputText value="#{msgs.email}"></h:outputText>
							<h:outputText value="#{userModel.authenticatedUser.email}"></h:outputText>
							<p:separator></p:separator>
							<p:separator></p:separator>
							<h:outputLabel value="#{msgs.newPassword}*" style="width:150px" />
							<h:panelGrid columns="1">
								<p:password id="password"
									validatorMessage="#{msgs.twoPasswordNotMatch}"
									value="#{userModel.authenticatedUser.newPassword}" required="true"
									requiredMessage="#{msgs.requiredFieldMessage}" feedback="true"
									match="confirmPassword" label="password" />
								<p:message for="password" showSummary="false" showDetail="true" />
							</h:panelGrid>
							<h:outputLabel value="#{msgs.confirmPassword}*"
								style="width:150px" />
							<h:panelGrid columns="1">
								<p:password id="confirmPassword"
									value="#{userModel.authenticatedUser.confirmNewPassword}"
									feedback="true" required="true"
									requiredMessage="#{msgs.requiredFieldMessage}"
									validator="#{validator.validateNotEmpty}"
									label="Confirm password" />
								<p:message for="confirmPassword" showSummary="false"
									showDetail="true"></p:message>
							</h:panelGrid>
							<h:inputHidden></h:inputHidden>
							<p:commandButton value="#{msgs.submit}" type="submit"
								ajax="false" action="#{userController.changeAuthenticateUserPassword}"></p:commandButton>
						</h:panelGrid>
						</p:panel>
					</h:form>
				</div>
			</div>
		</ui:define>
	</ui:composition>
</body>

</html>